<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<%@ include file="/WEB-INF/jsp/inc/taglibs.jsp"%>
	<%@ include file="/WEB-INF/jsp/inc/meta.jsp"%>
<script type="text/javascript" src="${approot}/resource/jquery/validate/jquery.validate.js"></script>
   <link href="${approot}/resource/jquery/validate/jquery.validate.css" rel="stylesheet" type="text/css" />
   <link href="${approot}/resource/jquery/validate/style.css" rel="stylesheet" type="text/css" />
  
</head>  
  <body style="background:#E8F5FE; padding:15px 18px;" class="scroll_r">
<div id="right_w"><p>当前位置：工程材料管理系统 >>材料明细添加</p></div>

  <table border="0" cellpadding="0" cellspacing="1" width="92%" align="center" id="add_tab">
   <tr>
   <th><span style="color:#ff0000; margin:0;">*</span>分类：</th>
   <td>
   ${item.caiType.name}
   </td>
   <th>类型：</th>
   <td>
    <c:if test="${item.leixing==1}">入库</c:if>
 <c:if test="${item.leixing==2}">出库</c:if>
   </td>
  </tr>
  
   <tr>
   <th><span style="color:#ff0000; margin:0;">*</span>记账日期：</th>
   <td>
   <fmt:formatDate value="${item.jiDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
   </td>
   <th>记账凭证：</th>
   <td>${item.jiPingzheng}</td>
  </tr>
   <tr>
   <th><span style="color:#ff0000; margin:0;">*</span>备注：</th>
   <td>${item.remark}</td>
   <th>原进价：</th>
   <td>${item.yuanjinjia}</td>
  </tr>
   <c:if test="${item.leixing==1}">
   <tr id="ruku">
   <th><span style="color:#ff0000; margin:0;">*</span>入库数量：</th>
   <td>${item.jieCount}</td>
   <th>入库金额：</th>
   <td>${item.jieMoney}</td>
  </tr>
  </c:if>
  
   <c:if test="${item.leixing==2}">
   <tr id="chuku1">
   <th><span style="color:#ff0000; margin:0;">*</span>出库数量：</th>
   <td>${item.daiCount}</td>
   <th>出库金额：</th>
   <td>${item.daiMoney}</td>
  </tr>
   <tr id="chuku2">
   <th><span style="color:#ff0000; margin:0;">*</span>领取人：</th>
   <td>${item.daiMan}</td>
   <th>领取单位：</th>
   <td>${item.daiDept}</td>
  </tr>
  </c:if>
   <tr>
   <th><span style="color:#ff0000; margin:0;">*</span>余额数量：</th>
   <td>${item.yuCount}</td>
   <th>余额金额：</th>
   <td>${item.yuMoney}</td>
  </tr>
 </table>
  <p id="tab_but">
   <input type="button" value="返回" onclick="history.go(-1)">
   </p>
</body>
</html>
